Tom,
I got to thinking about something that threw me off. Maybe
you can explain it to me or maybe there is something up
with the example code. I have 3 code examples below, can
you explain why I can't get the example code to work and
have to do something different?
In the "MPGSmoothHardwareEnc.c" file, the code after the
axis parameters and before the for loop is this
EnableAxisDest(0,ch0->Position);
DefineCoordSystem(0,-1,-1,-1);
Pos = chan[MPG_INPUT_AXIS].Position;
When I change it to this to match that my MPG is wired
into channel 7 it does not work
EnableAxisDest(7,ch0->Position);
DefineCoordSystem(0,1,2,-1);
Pos = chan[MPG_INPUT_AXIS].Position;
What works is this
DefineCoordSystem(0,1,2,-1);
EnableAxisDest(7,0);
Pos = chan[MPG_INPUT_AXIS].Position;
Thanks,
Dan